package com.golang.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.golang.api.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户信息对象 user
 *
 * @author ruoyi
 * @date 2025-01-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 真实姓名
     */
    @Excel(name = "真实姓名")
    private String realName;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String phone;

    /**
     * 昵称
     */
    @Excel(name = "昵称")
    private String nickName;

    /**
     * 头像
     */
    @Excel(name = "头像")
    private String headIcon;

    /**
     * 性别：1男，2女
     */
    @Excel(name = "性别：1男，2女")
    private Long sex;

    /**
     * 生日
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /**
     * 自我介绍
     */
    @Excel(name = "自我介绍")
    private String selfIntroduction;

    /**
     * 可提现金额
     */
    @Excel(name = "可提现金额")
    private BigDecimal withdrawAmount;

    /**
     * 总收入
     */
    @Excel(name = "总收入")
    private BigDecimal totalIncome;

    /**
     * 微信openId
     */
    @Excel(name = "微信openId")
    private String openId;

}
